{literal}
<script>
    function checkthis(){
      if(document.getElementById('username2').value==''){
          alert('Username is required');
		 return false;
      }
      if(document.getElementById('useremail2').value==''){
          alert('Email is required');
	  return false;
      }
		return true;
    }
</script> 
{/literal}
<div class="col_02" id="midPart_box">
	<div class="midPart_c">
	<p>Simply enter the username and email address associated with your account below and we will email you a temporary password. More questions? <a href="contactus.php">Contact us</a>.</p>
	<p><form name="form1" action="" method="POST" id="f1" onsubmit = "return checkthis()">
	<div style="width:300px;height:110px;margin:auto;">
		<table cellpadding="4" cellspacing="1" width="100%">
		 <tr><td> Username:</td><td ><input type="text" id="username2" name="username"  value=""></td></tr>
		 <tr><td> Email:</td><td><input type="text" id="useremail2" name="useremail"  value=""></td></tr>
		 <tr><td style="padding-top:8px" valign="top" colspan="2" align="center"><input name="submit" type="submit" value="Get Password" class="button-secondary">&nbsp;&nbsp;<input name="Reset" type="reset" value=" Reset " class="button-secondary"></td></tr>
		 {if $err!=''}<tr><td colspan="2" ><font color="red">{$err}</font></td></tr>{/if}
	  </table>
	</div>
	  </form>
	 </p>
	</div>
</div>